home *** CD-ROM | disk | FTP | other *** search
/ PC World Interactive 1 / PC World Interactive 1 - Nisan 1997.iso / prog / graf / 5 / _002340_ < prev    next >
Text File  |  1996-06-04  |  3KB  |  75 lines

  1. //------------------------------------------------------------------------------------------------------
  2. // Name       : tsample.c
  3. // Date       : 23.05.1996     Author : SM / OK    Language : E
  4. //------------------------------------------------------------------------------------------------------
  5. // This file contains all language-dependent text definitions of the module TSAMPLE_.DLL. Together with
  6. // the file TSAMPLE.RC, it is used to build the language library TSAMPLE.DLL.
  7. // The library file TSAMPLE.LIB which is created during the compilation of this language DLL must be
  8. // linked to the module's main DLL in order to have access to the texts and resources defined here.
  9. //------------------------------------------------------------------------------------------------------
  10.  
  11. #include        "windows.h"
  12. #include        "windowsx.h"
  13. #include        "stdlib.h"
  14.  
  15. #include        "e:\release4\toso40.h"          // Toso Interface 4.0 Definitions
  16.  
  17. //------ Language-dependent strings --------------------------------------------------------------------
  18.  
  19. DLL_EXPORT LPSTR
  20.         eStartUpText    [] = {
  21.           "Version 1.00e\n\nCopyright 1996 TommySoftware«\n\nDeveloper: Stefan Malz.",
  22.           "Sample Module",                                                      // 01
  23.           "Sample Module >",                                                    // 02
  24.           END_TEXT
  25.         },
  26.  
  27.         eDialogText     [] = {
  28.           "TommySoftware« Sample Module",                                       // 00
  29.           END_TEXT
  30.         },
  31.  
  32.         eMessageText    [] = {
  33.           "This module requires at least\nToso Interface Version 4.0.",         // 00
  34.           "Insufficient memory.\nPlease close other application to continue.",  // 02
  35.           "Invalid value.",                                                     // 03
  36.           "Invalid number. Enter values between 3 and 100.",                    // 04
  37.           END_TEXT
  38.         },
  39.  
  40.         eCommandName    [] = {
  41.           "Sample Module >Star...",                                             // 00
  42.           NULL,                                                                 // 01
  43.           "Sample Module >About...",                                            // 02
  44.           END_TEXT
  45.         },
  46.  
  47.         eCommandEntry   [] = {
  48.           "&1  Star...",                                                        // 00
  49.           NULL,                                                                 // 01
  50.           "&+  About...",                                                       // 02
  51.           END_TEXT
  52.         },
  53.  
  54.         eNewPoint       [] = {
  55.           "Enter inner radius",                                                 // 00
  56.           "Enter outer radius",                                                 // 01
  57.           END_TEXT
  58.         };
  59.  
  60. //------------------------------------------------------------------------------------------------------
  61. // This DLL entry procedure must exist in any DLL to be used in Win32. Since our language DLL does not
  62. // need any initialization, this procedure is quite empty.
  63.  
  64. BOOL WINAPI DllMain( HINSTANCE hInstance, DWORD Reason, LPVOID Dummy )
  65. {
  66.   switch( Reason ) {
  67.     case DLL_PROCESS_ATTACH:
  68.       break;
  69.  
  70.     case DLL_PROCESS_DETACH:
  71.       break;
  72.   }
  73.   return( TRUE );
  74. }
  75.